package com.leo.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author shaolin.liu
 * @description
 * @date 17:40 2018/8/2
 * @modified By:
 */
public class DateUtil {
    private static String DEFAULT_FORMAT = "YYYYMM";


    public static String getDateFormat(Date date){
        SimpleDateFormat sf = new SimpleDateFormat(DEFAULT_FORMAT);
        return sf.format(date);
    }
}
